import axios from "@/http";

// 获取车站列表
export const getCarList = () => {
  return axios.get("/api/getCarList");
};

// 获取车次类型列表
export const getCarTypeList = () => {
  return axios.get("/api/getCarTypeList");
};

// 获取车长类型列表
export const getVehicleList = () => {
  return axios.get("/api/getVehicleList");
};

// 添加车次
export const addAdminCarItem = (data) => {
  return axios.get("/api/addAdminCarItem", {
    params: data
  });
};

// 删除车次
export const delAdminCarItem = (id) => {
  return axios.delete("/api/delAdminCarItem", {
    data: {
      id
    }
  });
};

